package han.entity;

import java.util.Objects;

/**
 * @author: Han
 * @date: 2018/7/11 9:01
 * @dscription: 好友实体
 */
public class FriendEntity implements ContactEntity {
    private long uin;
    private long face;
    private String nickName;
    private String markName;
    private long flag;
    private int categoriesIndex;
    private String categoriesName;

    @Override
    public long getUin() {
        return uin;
    }

    public void setUin(long uin) {
        this.uin = uin;
    }

    @Override
    public String getName() {
        return nickName;
    }

    public long getFace() {
        return face;
    }

    public void setFace(long face) {
        this.face = face;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public long getFlag() {
        return flag;
    }

    public void setFlag(long flag) {
        this.flag = flag;
    }

    public String getMarkName() {
        return markName;
    }

    public void setMarkName(String markName) {
        this.markName = markName;
    }

    public int getCategoriesIndex() {
        return categoriesIndex;
    }

    public void setCategoriesIndex(int categoriesIndex) {
        this.categoriesIndex = categoriesIndex;
    }

    public String getCategoriesName() {
        return categoriesName;
    }

    public void setCategoriesName(String categoriesName) {
        this.categoriesName = categoriesName;
    }

    @Override
    public String toString() {
        String n = markName;
        if (Objects.isNull(n)) {
            n = nickName;
        } else {
            n = markName + "(" + nickName + ")";
        }
        return n;
    }
}
